import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: [...constantRoutes] // 导入router的静态路由 作为初始值
  },
  mutations: {
    setMenuList(state, asyncRoutes) {
      // 储存静态路由和动态路由
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}
